﻿using System;
using System.Collections.Generic;
namespace CoreSoft.Frame.Entity
{

    [Serializable]
    /// <summary>
    /// rdrecords32 
    /// 数据表:rdrecords32
    /// </summary>
    public class Rdrecords32
    {
        #region 构造函数
        public Rdrecords32()
        {
        }
        #endregion
        
        #region 表字段
        /// <summary>
        /// 主键
        /// </summary>
        public String Id
        {
            get;
            set;
        }
        
        /// <summary>
        /// 出库行号
        /// </summary>
        public Int32 RdSeq
        {
            get;
            set;
        }
        
        /// <summary>
        /// 出库单号
        /// </summary>
        public String RdCode
        {
            get;
            set;
        }
        
        /// <summary>
        /// 来源明细ID
        /// </summary>
        public String SourceDID
        {
            get;
            set;
        }

        public Decimal Qty { get; set; }

        /// <summary>
        /// 币种
        /// </summary>
        public String Bz
        {
            get;
            set;
        }
        
        /// <summary>
        /// 汇率
        /// </summary>
        public Single? ExchangeRate
        {
            get;
            set;
        }
        
        /// <summary>
        /// 税率
        /// </summary>
        public Single? TaxRate
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币单价
        /// </summary>
        public Decimal? OriPrice
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币含税单价
        /// </summary>
        public Decimal? OriTaxPrice
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币金额
        /// </summary>
        public Decimal? IOriSum
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币价税合计
        /// </summary>
        public Decimal? IoriTaxSum
        {
            get;
            set;
        }
        
        /// <summary>
        /// 原币税额
        /// </summary>
        public Decimal? IOriTax
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币单价
        /// </summary>
        public Decimal LocalPrice
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币含税单价
        /// </summary>
        public Decimal? LocalTaxPrice
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币金额
        /// </summary>
        public Decimal? ILocalSum
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币价税合计
        /// </summary>
        public Decimal? ILocalTaxSum
        {
            get;
            set;
        }
        
        /// <summary>
        /// 本币税额
        /// </summary>
        public Decimal? IlocalTax
        {
            get;
            set;
        }
        
        /// <summary>
        /// ERP返回调拨单明细标识
        /// </summary>
        public Int32? U8TransDid
        {
            get;
            set;
        }
        
        /// <summary>
        /// 组织ID
        /// </summary>
        public String OrgID
        {
            get;
            set;
        }

        public string OPackNumber { get; set; }

        /// <summary>
        /// 货位编号
        /// </summary>
        public String PositionCode
        {
            get;
            set;
        }

        /// <summary>
        /// 批次号
        /// </summary>
        public String BatchCode
        {
            get;
            set;
        }

        /// <summary>
        /// 存货编码
        /// </summary>
        public String CinvCode
        {
            get;
            set;
        }

        #endregion
        #region 验证字段是否可以为空
        public List<string> Validation()
        {
            List<string> vMsgList=new List<string>();
            
                    if(Id==null){
                          vMsgList.Add("主键不可以为空！");
                    }
                    else{
                        if(Id.ToString().Trim()=="")
                        {
                              vMsgList.Add("主键不可以为空！");
                        }
                    }
                 
                    if(RdSeq==null){
                          vMsgList.Add("出库行号不可以为空！");
                    }
                    else{
                        if(RdSeq.ToString().Trim()=="")
                        {
                              vMsgList.Add("出库行号不可以为空！");
                        }
                    }
                 
                    if(RdCode==null){
                          vMsgList.Add("出库单号不可以为空！");
                    }
                    else{
                        if(RdCode.ToString().Trim()=="")
                        {
                              vMsgList.Add("出库单号不可以为空！");
                        }
                    }
                 
                    if(SourceDID==null){
                          vMsgList.Add("来源明细ID不可以为空！");
                    }
                    else{
                        if(SourceDID.ToString().Trim()=="")
                        {
                              vMsgList.Add("来源明细ID不可以为空！");
                        }
                    }
                 
                    if(LocalPrice==null){
                          vMsgList.Add("本币单价不可以为空！");
                    }
                    else{
                        if(LocalPrice.ToString().Trim()=="")
                        {
                              vMsgList.Add("本币单价不可以为空！");
                        }
                    }
                 
                    if(OrgID==null){
                          vMsgList.Add("组织ID不可以为空！");
                    }
                    else{
                        if(OrgID.ToString().Trim()=="")
                        {
                              vMsgList.Add("组织ID不可以为空！");
                        }
                    }
                 
            return vMsgList;
        }
        
        
        #endregion
    }
}